# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=oksh
pkgver=7.5
pkgrel=0
pkgdesc="Portable OpenBSD ksh, based on the Public Domain KornShell (pdksh)"
url="https://github.com/ibara/oksh"
arch="all"
license="Public-Domain"
options="!check" # no checks
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="https://github.com/ibara/oksh/releases/download/oksh-$pkgver/oksh-$pkgver.tar.gz"

build() {
	./configure \
		--bindir=/bin \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c794fb5778a342ee340b8399a2085ec6b58bb2732e3779ce042b5117b50bc53fbf93747368c359ebe8cd3bdf39c095797f76381232d9dfa9c1b47fc4d70fd418  oksh-7.5.tar.gz
"
